/**
 * Created by ifredom on 24/11/17.
 */
'use strict'

import {Dimensions} from 'react-native'

// device width/height
export const deviceWidth = Dimensions.get('window').width
export const deviceHeight = Dimensions.get('window').height

// design width/height
const uiWidthPx = 750
const uiHeightPx = 667

export default function px2dp(uiElementPx) {

    return uiElementPx * deviceHeight / uiHeightPx
}